<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <style>
        #test1{
            background-color: red;
            width: 500px;
            height: 350px;
            position: relative;
        }
        .test2{
            position: absolute;
            top: 50%;
            left: 50%;
            width: 200px;
            background-color: blue;
        }
    </style>
</head>
<body>
<div id="test1">
    <div class="test2">eeeeww</div>
</div>
</body>
</html>